package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;

import com.itheima.dao.RoleDao;

import com.itheima.domian.Role;
import com.itheima.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;


import java.util.List;

/**
 * @author M
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;
    @Override
    public List<Role> findAll() {
       return roleDao.findAll();
    }

    @Override
    public List<Role> findByID(Integer id) {
        return roleDao.findById(id);
    }
}
